package arrays;

import java.util.Arrays;

public class arrayshome {
    public static void main(String[] args) {
        String str = "dbsaksdaksadkjdskj asjksagjkwgfnmj,wgkwsg is";
        char[] ch=str.toCharArray();

        Arrays.sort(ch);
       /* for(int i=0,j=ch.length-1;i<j;i++,j--)
        {
            char exchange;
            exchange=ch[i];
            ch[i]=ch[j];
            ch[j]=exchange;
        }
        System.out.println(Arrays.toString(ch));
         */
        for (int i = ch.length - 1; i >= 0; i--) {
            System.out.println(ch[i]);
        }
    }
}
